Advanced Debugging
About AdvDbg Consult Train Services Products Tools Community Contact  
欢迎光临 高端调试 登录 | 注册 | FAQ
 
  ACPI调试
Linux内核调试
Windows内核调试
 
  调试战役
调试原理
新工具观察
 
  Linux
Windows Vista
Windows
 
  Linux驱动
WDF
WDM
 
  PCI Express
PCI/PCI-X
USB
无线通信协议
 
  64位CPU
ARM
IA-32
  CPU Info Center
 
  ACPI标准
系统认证
Desktop
服务器
 
  Embedded Linux
嵌入式开发工具
VxWorks
WinCE
嵌入式Windows
 
  格蠹调试套件(GDK)
  格蠹学院
  小朱书店
  老雷的微博
  《软件调试》
  《格蠹汇编》
  《软件调试(第二版)》
沪ICP备11027180号-1

WinDbg

帖子发起人: Forward   发起时间: 2011-02-14 09:15 上午   回复: 4

Print Search
帖子排序:    
   2011-02-14, 09:15 上午
wbdwbd04 离线,最后访问时间: 2011/6/7 7:59:42 Forward

发帖数前25位
注册: 2009-12-23
发 贴: 50
r idtr 命令与dg命令的执行
Reply Quote

大家新年号,问2个小问题。

我在看《软件调试》11章p277时,使用r idtr不能得到idtr的地址,而得到到Bad register error in 'r idtr,是不是因为我使用的是winXP系统中没有idtr这个寄存器?

后我根据!pcr命令得到的IDT地址8003f400。

使用db 8003f400+8*8 l8命令得到8003f440  88 11 50 00 00 85 00 00 ,之后使用dg 50命令获取TSS段描述符,但是提示:


                                             P Si Gr Pr Lo
Sel    Base     Limit     Type    l ze an es ng Flags
---- -------- -------- ---------- - -- -- -- -- --------
0050 GetContextState failed, 0x80004001
Unable to get descriptor

 

这是为什么呢?


IP 地址: 已记录   报告
   2011-02-14, 16:27 下午
Raymond 离线,最后访问时间: 2020/7/3 3:40:25 格蠹老雷

发帖数前10位
注册: 2005-12-19
发 贴: 1,303
Re: r idtr 命令与dg命令的执行
Reply Quote
哪种调试会话?r igtr需要在双机内核调试或者分析内核转储文件时使用,本地内核调试是不可以的
IP 地址: 已记录   报告
   2011-02-15, 08:21 上午
wbdwbd04 离线,最后访问时间: 2011/6/7 7:59:42 Forward

发帖数前25位
注册: 2009-12-23
发 贴: 50
Re: r idtr 命令与dg命令的执行
Reply Quote
哦,的确我用的是本机内核调试。dg命令是不是也一样??要双机调试会话呢?
IP 地址: 已记录   报告
   2011-02-15, 12:25 下午
Raymond 离线,最后访问时间: 2020/7/3 3:40:25 格蠹老雷

发帖数前10位
注册: 2005-12-19
发 贴: 1,303
Re: r idtr 命令与dg命令的执行
Reply Quote
在XP系统中,dg命令可以在调试应用程序时使用。
在Win7中,6.11版本的WinDBG在调试64位的应用程序时,无法正常工作,显示0053 Unable to get descriptor;调试32位程序没有问题;6.12版本都可以。
IP 地址: 已记录   报告
   2011-02-15, 17:05 下午
wbdwbd04 离线,最后访问时间: 2011/6/7 7:59:42 Forward

发帖数前25位
注册: 2009-12-23
发 贴: 50
Confused [*-)] Re: r idtr 命令与dg命令的执行
Reply Quote

Windows XP Kernel Version 2600 (Service Pack 2) MP (2 procs) Free x86 compatible

我的Windows系统是32位的啊


IP 地址: 已记录   报告
高端调试 » 软件调试 » WinDbg » r idtr 命令与dg命令的执行

 
Legal Notice Privacy Statement Corporate Governance Corporate Governance
(C)2004-2020 ADVDBG.ORG All Rights Reserved.